package com.platform.qujia.pojo;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @date 2024/2/1
 */
@Getter
@Setter
@ApiModel("sys_user_pos_config")
public class SysUserPosConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id，sys_user表主键
     */
    @TableId(type = IdType.INPUT)
    @ApiModelProperty("用户id，sys_user表主键")
    @NotNull
    @Min(1)
    private Long userId;

    /**
     * 语音配置字符串
     */
    @ApiModelProperty("语音配置字符串")
    @TableField(insertStrategy = FieldStrategy.IGNORED,updateStrategy = FieldStrategy.IGNORED)
    private String voiceField;

    /**
     * create_time
     */
    @JsonIgnore
    @ApiModelProperty("create_time")
    private LocalDateTime createTime;

    /**
     * update_time
     */
    @JsonIgnore
    @ApiModelProperty("update_time")
    private LocalDateTime updateTime;

}